package com.atguigu.gmall.activity.client.impl;

import com.atguigu.gmall.activity.client.ActivittyFeignClient;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author Fxz
 * @version 1.0
 * @date 2022-02-25 16:26
 */
@Slf4j
@Component
public class ActivittyFeignClientImpl implements FallbackFactory<ActivittyFeignClient> {

	@Override
	public ActivittyFeignClient create(Throwable throwable) {
		log.error(throwable.getMessage());
		return null;
	}

}
